package com.newtouch.xcd.cms.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 合同表
 * </p>
 *
 * @author dongyuefeng
 * @since 2020-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("5k_contract")
@ApiModel(value="Contract对象", description="合同表")
public class Contract implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "contract_id", type = IdType.AUTO)
    private Integer contractId;

    @ApiModelProperty(value = "表前缀")
    @TableField("prefixion")
    private String prefixion;

    @ApiModelProperty(value = "编号")
    @TableField("number")
    private String number;

    @TableField("xt_number")
    private String xtNumber;

    @ApiModelProperty(value = "商机")
    @TableField("business_id")
    private Integer businessId;

    @ApiModelProperty(value = "供应商id")
    @TableField("supplier_id")
    private Integer supplierId;

    @ApiModelProperty(value = "客户id")
    @TableField("customer_id")
    private Integer customerId;

    @ApiModelProperty(value = "立项ID")
    @TableField("trust_id")
    private Integer trustId;

    @ApiModelProperty(value = "续签合同id")
    @TableField("renew_contract_id")
    private Integer renewContractId;

    @ApiModelProperty(value = "合同类型")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "1已续签2已忽略")
    @TableField("contract_status")
    private Integer contractStatus;

    @ApiModelProperty(value = "总价")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "产品数量")
    @TableField("count_nums")
    private Integer countNums;

    @ApiModelProperty(value = "签约日期")
    @TableField("due_time")
    private Integer dueTime;

    @ApiModelProperty(value = "负责人")
    @TableField("owner_role_id")
    private Integer ownerRoleId;

    @ApiModelProperty(value = "创建者")
    @TableField("creator_role_id")
    private Integer creatorRoleId;

    @ApiModelProperty(value = "合同内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Integer createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private Integer updateTime;

    @ApiModelProperty(value = "生效时间")
    @TableField("start_date")
    private Integer startDate;

    @ApiModelProperty(value = "到期时间")
    @TableField("end_date")
    private Integer endDate;

    @ApiModelProperty(value = "合同状态")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "是否删除")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "删除人")
    @TableField("delete_role_id")
    private Integer deleteRoleId;

    @ApiModelProperty(value = "删除时间")
    @TableField("delete_time")
    private Integer deleteTime;

    @ApiModelProperty(value = "合同名称")
    @TableField("contract_name")
    private String contractName;

    @ApiModelProperty(value = "是否审核0未审核1通过2未通过")
    @TableField("is_checked")
    private Integer isChecked;

    @ApiModelProperty(value = "审核时间")
    @TableField("check_time")
    private Integer checkTime;

    @ApiModelProperty(value = "审核备注")
    @TableField("check_des")
    private Integer checkDes;

    @ApiModelProperty(value = "审核人")
    @TableField("examine_role_id")
    private Integer examineRoleId;

    @TableField("examine_status")
    private Integer examineStatus;

    @TableField("order_id")
    private Integer orderId;

    @ApiModelProperty(value = "信托账户账号")
    @TableField("zhanghao")
    private String zhanghao;

    @ApiModelProperty(value = "开户行")
    @TableField("kaihuhang")
    private String kaihuhang;

    @TableField("kh_name")
    private String khName;

    @ApiModelProperty(value = "资产配置条款")
    @TableField("zcpztk")
    private String zcpztk;

    @ApiModelProperty(value = "追加信托财产条款")
    @TableField("zjxtcctk")
    private String zjxtcctk;

    @ApiModelProperty(value = "信息披露条款")
    @TableField("xxpltk")
    private String xxpltk;

    @ApiModelProperty(value = "保护人报酬")
    @TableField("bhrbc")
    private String bhrbc;

    @ApiModelProperty(value = "受托人报酬")
    @TableField("strbc")
    private String strbc;

    @ApiModelProperty(value = "其他条款")
    @TableField("othertk")
    private String othertk;

    @ApiModelProperty(value = "初始信托财产")
    @TableField("csxtcc")
    private String csxtcc;

    @ApiModelProperty(value = "追加信托财产")
    @TableField("zjxtcc")
    private String zjxtcc;

    @ApiModelProperty(value = "变现信托财产")
    @TableField("bxxtcc")
    private String bxxtcc;


}
